<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021/4/3
  Time: 20:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Object us = request.getSession().getAttribute("USER_SESSION");
    System.out.println(us);
    if(us == null)
    {
        response.sendRedirect("/Servlet_2_war/login1.jsp");
    }
%>
<p><a href="${pageContext.request.contextPath}/servlet/logout">注销</a> </p>
<h1> success! </h1>
</body>
</html>
